/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package calendar_another_ns;

import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
import org.xml.sax.XMLReader;

/**
 *
 * @author nue
 */
public class Calendar {

    
    private static final String FILE ="CalendarJanko.xml";
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
        try{
        SAXParserFactory spf = SAXParserFactory.newInstance();
        spf.setValidating(true);
        SAXParser saxLevel1 = spf.newSAXParser();
        XMLReader parser = saxLevel1.getXMLReader();
        parser.setErrorHandler(null);
        parser.setContentHandler(null);
        parser.parse(FILE);
        System.out.println("Subor "+FILE+" precitany bez chyb");
        
        } catch(Exception e) {
            System.err.println("nastala chyba");
        };
    }
}
